﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="ShareMarking.Web.admin.EnterPrise.Activity.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>列表</title>
<script type="text/javascript" src="/scripts/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
<script type="text/javascript" src="/admin/js/layout.js"></script>
<link  href="/css/pagination.css" rel="stylesheet" type="text/css" />
<link href="/admin/skin/default/style.css" rel="stylesheet" type="text/css" />
<script src="../../../scripts/jquery/jquery.lazyload.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("img").lazyload({ effect: "fadeIn" });
        $("#wxcodeimport").click(function () {
            showAttachDialog();
        });
        //创建附件窗口
        function showAttachDialog(obj) {
            var objNum = arguments.length;
            var attachDialog = $.dialog({
                id: 'wxcodeimport',
                lock: true,
                max: false,
                min: false,
                title: "微信二维码导入信息",
                content: 'url:EnterPrise/Activity/WXCodeimport.aspx',
                width: 670,
                height: 242
            });
        }
    });
</script>
</head>

<body class="mainbody">
<form id="form1" runat="server">
<!--导航栏-->
<div class="location">
  <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
  <a href="/admin/center.aspx" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <span>列表</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div class="toolbar-wrap">
  <div id="floatHead" class="toolbar">
    <div class="l-list">
      <ul class="icon-list">
        <li><a class="add" href="Action.aspx?action=<%=ShareMarking.Systems.Service.DTEnums.ActionEnum.Add %>"><i></i><span>新增微信二维码</span></a></li>
        <li style="display:none"><a class="add" href="Action2.aspx?action=<%=ShareMarking.Systems.Service.DTEnums.ActionEnum.Add %>"><i></i><span>新增普通二维码</span></a></li>
          <li><a id="wxcodeimport" class="save" href="javascript:"><i></i><span>导入微信二维码</span></a></li>
         <li>
            <asp:LinkButton ID="btnExport" runat="server" CssClass="save" 
            OnClick="btnDownload_Click" OnClientClick=" return ConfirmPostBack('btnExport','确定要导出吗？');"><i></i><span>导出微信二维码</span></asp:LinkButton>       
         </li>
       <li>
            <asp:LinkButton ID="exportIMG" runat="server" CssClass="save" OnClick="exportIMG_Click" 
                OnClientClick=" return ConfirmPostBack('exportIMG','确定要导出吗？');"><i></i><span>导出二维码图片</span>
            </asp:LinkButton>
        </li>
        <li>
            <asp:LinkButton ID="LinkButton1" runat="server" CssClass="save" 
                onclick="LinkButton1_Click"><i></i><span>更新二维码</span>
            </asp:LinkButton>
        </li>
      </ul>
      <div class="menu-list">
      </div>
    </div>
    <div class="r-list" style="display:none">
      <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
      <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" onclick="btnSearch_Click">查询</asp:LinkButton>
    </div>
  </div>
</div>
<!--/工具栏-->

<div class="det-list clearfix">
        <div class="group btm">
            <div class="control" style="width:238px;">
                <div class="title" style="width:61px;">
                    二维码名称</div>
                <asp:TextBox ID="txtA_Name" runat="server" CssClass="input normal"></asp:TextBox>
            </div>
            <div class="control">
                <div class="title">
                    负责人</div>
                <asp:TextBox ID="txtA_Manager" runat="server" CssClass="input normal"></asp:TextBox>
            </div> 
             <div class="control" style="width:280px; display:none">
                <div class="title" style="width:100px">
                        请选择二维码类型
                </div>
                <div class="single-select">
                    <asp:DropDownList ID="ddl_IsSenate" runat="server" CssClass="input normal" 
                        AutoPostBack="True" AppendDataBoundItems="true" Visible="true" 
                        onselectedindexchanged="ddl_IsSenate_SelectedIndexChanged">
                            <asp:ListItem Value="true" Selected="True">微信二维码</asp:ListItem>  
                            <asp:ListItem Value="false">普通二维码</asp:ListItem>
                            <%--<asp:ListItem Value="所有" Selected="True">所有</asp:ListItem>--%>
                        </asp:DropDownList>
                </div>              
            </div> 
            &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;                     
             <div class="btn-list" style="margin-top:3px">
                    <asp:Button ID="btnDetailedSearch" runat="server" Text="搜索" CssClass="btn" OnClick="btnDetailedSearch_Click" />
                </div>           
        </div>
 </div>

<!--列表-->
<asp:Repeater ID="rptList" runat="server">
<HeaderTemplate>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
  <tr>
    <%--<th width="8%">选择</th>--%>
    <th width="12%">二维码名称</th>
    <th width="8%">活动描述</th>
    <th width="5%">负责人</th>
    <th width="7%">活动二维码ID</th>
    <th width="7%">二维码场景值</th>
    <th width="9%">标题</th>
    <th width="9%">描述</th>
    <th width="8%">二维码类型</th>
    <th width="6%">微信二维码</th>
    <th width="6%">创建时间</th>
    <th width="5%">操作</th>
  </tr>
</HeaderTemplate>
<ItemTemplate>
   <tr>
    <td align="center"><a href="Action.aspx?action=<%#ShareMarking.Systems.Service.DTEnums.ActionEnum.Edit %>&id=<%#Eval("ActivityID")%>"><%#Eval("A_Name")%></a></td>
    <td align="center"><%#Eval("A_Desc")%></td>
    <td align="center"><%#Eval("A_Manager")%></td>
    <td align="center"><%#Eval("A_wxQrCodeID")%></td>
    <td align="center"><%#Eval("A_wxSceneID")%></td>
    <td align="center"><%#Eval("A_wxTitle")%></td>
    <td align="center"><%#Eval("A_wxDesc")%></td>
     <td align="center"><%#Eval("isSenate").ToString()=="1"?"微信二维码":"普通二维码"%></td>
    <td align="center"><img width="120px" src='<%#geturl((Eval("A_wxSceneID")).ToString())%>' /></td>
    <td align="center"><%#Eval("CreateOn", "{0:d}")%></td>
    <td align="center"><a href="Action.aspx?action=<%#ShareMarking.Systems.Service.DTEnums.ActionEnum.Edit %>&id=<%#Eval("ActivityID")%>">修改</a></td>
  </tr>
</ItemTemplate>
<FooterTemplate>
  <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"16\">暂无记录</td></tr>" : ""%>
</table>
</FooterTemplate>
</asp:Repeater>



<asp:Repeater ID="rptList2" runat="server">
<HeaderTemplate>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
  <tr>
    <%--<th width="8%">选择</th>--%>
    <th width="8%">活动名称</th>
    <th width="8%">活动描述</th>
    <th width="8%">负责人</th>
    <th width="8%">活动二维码ID</th>
    <th width="8%">二维码场景值</th>
   <%-- <th width="8%">标题</th>
    <th width="8%">描述</th>--%>
    <th width="8%">二维码类型</th>
    <th width="8%">微信二维码</th>
    <th width="8%">操作</th>
  </tr>
</HeaderTemplate>
<ItemTemplate>
  <tr>
    <td align="center"><a href="Action2.aspx?action=<%#ShareMarking.Systems.Service.DTEnums.ActionEnum.Edit %>&id=<%#Eval("ActivityID")%>"><%#Eval("A_Name")%></a></td>
    <td align="center"><%#Eval("A_Desc")%></td>
    <td align="center"><%#Eval("A_Manager")%></td>
    <td align="center"><%#Eval("A_wxQrCodeID")%></td>
    <td align="center"><%#Eval("A_wxSceneID")%></td>
    <%--<td align="center"><%#Eval("A_wxTitle")%></td>
    <td align="center"><%#Eval("A_wxDesc")%></td>--%>
    <td align="center"><%#Eval("isSenate").ToString()=="1"?"微信二维码":"普通二维码"%></td>
    <td align="center"><img width="120px" src='<%#getdiyurl((Eval("A_wxSceneID")).ToString())%>' /></td>
    <td align="center"><a href="Action2.aspx?action=<%#ShareMarking.Systems.Service.DTEnums.ActionEnum.Edit %>&id=<%#Eval("ActivityID")%>">修改</a></td>
  </tr>
</ItemTemplate>
<FooterTemplate>
  <%#rptList2.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"16\">暂无记录</td></tr>" : ""%>
</table>
</FooterTemplate>
</asp:Repeater>
<!--/列表-->

<!--内容底部-->
<div class="line20"></div>
<div class="pagelist">
  <div class="l-btns">
    <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" ontextchanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
  </div>
  <div id="PageContent" runat="server" class="default"></div>
</div>
<!--/内容底部-->
</form>
</body>
</html>
